package com.penghaisoft.microwms.material.web.insidewarehouse.controller;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.penghaisoft.microwms.common.Constant;
import com.penghaisoft.microwms.common.dto.Resp;
import com.penghaisoft.microwms.common.dto.TransResult;
import com.penghaisoft.microwms.common.page.Pager;
import com.penghaisoft.microwms.common.wms.model.RawContractChange;
import com.penghaisoft.microwms.common.wms.model.RawLockLog;
import com.penghaisoft.microwms.common.wms.model.RawStorageSn;
import com.penghaisoft.microwms.material.web.insidewarehouse.service.IMaterialInsideService;

import lombok.extern.slf4j.Slf4j;

import com.penghaisoft.microwms.common.controller.BaseController;

@RestController
@RequestMapping(value = "/rawContractChange")
@Slf4j
public class RawContractChangeController extends BaseController {
	
		@Autowired
		private IMaterialInsideService iMaterialInsideService;

		/**
		 * @Description: TODO
		 * @param @param page
		 * @param @param rows
		 * @param @param rawContractChange
		 * @param @return   
		 * @return TransResult
		 * @author lengxf
		 * @date 2018年9月14日 下午4:45:17
		 */
		@PostMapping("list")
		public TransResult list(@RequestParam(name = "page", defaultValue = "1") int page,
                            @RequestParam(name = "rows", defaultValue = "10") int rows,RawContractChange rawContractChange) {
			Pager<RawContractChange> result = iMaterialInsideService.findRawContractChange(page,rows,rawContractChange);
			return success(result);
		}
}
